package com.wonders.qxmanager.model;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * Role entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "role")
public class Role implements java.io.Serializable {

	
	@Id
	@GeneratedValue(generator = "SEQ_role")
	@GenericGenerator(name = "SEQ_role", strategy = "native", parameters = {
			@org.hibernate.annotations.Parameter(name = "sequence", value = "SEQ_role"),
			@org.hibernate.annotations.Parameter(name = "unsaved-value", value = "0") })
	// Fields
	@Column(name = "roleId")
	private BigDecimal roleId;
	@Column(name = "number")
	private Integer number;
	@Column(name = "roleName")
	private String roleName;

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(BigDecimal roleId) {
		this.roleId = roleId;
	}

	/** full constructor */
	
	public BigDecimal getRoleId() {
		return this.roleId;
	}

	public Role(BigDecimal roleId, Integer number, String roleName) {
		super();
		this.roleId = roleId;
		this.number = number;
		this.roleName = roleName;
	}

	public void setRoleId(BigDecimal roleId) {
		this.roleId = roleId;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

}